home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1997 September
/
Macworld (1997-09).dmg
/
Serious Software
/
Cherwell Scientific Demos
/
pro Fit
/
pro Fit 5.0 demo (fpu).sea
/
pro Fit 5.0 demo (fpu)
/
Examples
/
Plotting - simple
/
FET function
< prev
next >
Wrap
Text File
|
1996-04-15
|
439b
|
26 lines
function FET;
{ This function calculates the current-voltage
characteristics of a MOS-FET }
description
'sel = 0: Id(Uds)',
'sel = 1: Id(Uds) at saturation';
defaults
a[1] := 10,inactive,'Ugs';
a[2] := 1, inactive,'µCg/L2';
a[3] := 0, inactive,'sel';
begin
if a[3] = 0 then begin
if x < a[1] then
y := a[2]*(x*a[1]-sqr(x)/2)
else
y := a[2]*sqr(a[1])/2;
end
else
y := a[2]*sqr(x)/2;
end;